/*
 * @Date: 2024-03-29 20:19:08
 * @LastEditors: 玄绮 shijiahansi@qq.com
 * @LastEditTime: 2024-04-13 13:05:20
 * @FilePath: \server\src\common\System.h
 */

#ifndef SYSTEM_H
#define SYSTEM_H

#pragma once
#include <string>

namespace sys {
    std::string convertToUTF8(const std::string& input);

    std::string convertToGBK(const std::string& input);

    std::string to_local(std::string str);
    std::string from_local(std::string str);

    std::wstring encode(std::string str, const std::string &charset = "UTF-8");
    std::string decode(std::wstring wstr, const std::string &charset = "UTF-8");
    
    void InitConsole(void);
   

}  // namespace sys

#endif